package com.bai.localshop.service;

import com.bai.localshop.pojo.dto.SaveShoppingCartDTO;
import com.bai.localshop.pojo.entity.ShoppingCart;
import com.bai.localshop.pojo.vo.ShoppingCartVO;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

public interface ShoppingCartService extends IService<ShoppingCart> {
    /**
     * 添加购物车
     * @param requestParam
     */
    void save(SaveShoppingCartDTO requestParam);

    /**
     * 查看购物车
     * @return
     */
    List<ShoppingCartVO> queryList();

    /**
     * 清空购物车
     */
    void cleanById();

    /**
     * 删除一个商品
     */
    void reduceById(Long id);

    /**
     * 删除一条商品
     * @param id
     */
    void deleteById(Long id);
}
